import request from '@/utils/request'

/**
 * 获取管理员列表
 * @param params 
 * @returns 
 */
export const getAdminList = (params: any) => request.get({ url: '/adminapi/system.auth.admin_user/lists', params })


/**
 * 新增管理员
 * @param data 
 * @returns 
 */
export const addAdmin = (data: any) => request.post({ url: '/adminapi/system.auth.admin_user/save', data })


/**
 * 更新管理员
 * @param data 
 * @returns 
 */
export const updateAdmin = (data: any) => request.put({ url: '/adminapi/system.auth.admin_user/update', data })


/**
 * 删除管理员
 * @param data 
 * @returns 
 */
export const deleteAdmin = (id: any) => request.delete({ url: '/adminapi/system.auth.admin_user/delete', params: { id } })


/**
 * 获取角色列表
 * @returns 
 */
export const getRoleList = () => request.get({ url: '/adminapi/system.auth.admin_user/getAuthRole' })


/**
 * 获取组织架构列表
 * @returns 
 */
export const getOrganizationList = () => request.get({ url: '/adminapi/system.organize.company/getOrganizationList' })
